<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
	request.setCharacterEncoding("UTF-8");
	String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/JSP/backHome/modalWindows/argeeCommon.jsp" %>
<%@ include file="/WEB-INF/JSP/backHome/modalWindows/againstAuditCommon.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
<link rel="stylesheet" type="text/css"
	href="<%=path%>/CSS/backLayout.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/bombBox.css">
<style type="text/css">   
         .tr_td td:nth-child(1) {
            border-left: 1px solid #cccccc;
        } 

		 tr td:nth-child(1) {
            font-size: 12px;
            color: #cccccc
        } 
        table tr:nth-of-type(1){
			background: #a9bbe0;
		}
		.div_table{
			margin:0 auto;
		}
		.child input{
			width:120px;
		} 
		 /* .datatable tr:hover,.datatable tr.hilite{
    		background-color:#99FF66; 
    		color:#0000CC;
    	} */
    	.datatable
{
    /* border-collapse:collapse;
    color:#000000; */
    /* font-family:Arial, Helvetica, sans-serif; */
   /*  border:1px solid #000099; */
    /* font-size:14px; */
}
 .datatable th,.datatable td
{
    text-align:left;
    border:0px solid #000000;
    padding-left:4px;
    padding-top:5px;
    padding-bottom:5px;
    padding-left:4px;
    padding-right:4px;
} 
.datatable th
{
    /* color:#000066; */
    /* font-family:宋体,Arial, Helvetica, sans-serif; */
    /* background-color:#CCCCCC; */
    background: #a9bbe0;
}
 .datatable caption
{
    
    background-color:#CCFF66;
    padding:5px 0 5px 0;
}  
 input[type=checkbox]{
	width:13px;
} 


       
</style>
</head>
<body style="background: #f5f5f5">
<div class="main">
	<div class="weizhi">
		<c:if test="${remunProvide.cfbillstate eq 3}">
			人力资源>>薪资发放>>修改
		</c:if>
		<c:if test="${remunProvide.cfbillstate eq 4 || remunProvide.cfbillstate eq 5}">
			人力资源>>薪资发放>>查看
		</c:if>

	</div>
	<div id="modal-overlay"></div>
		<div class="modal-data2">
			<div style="height: 60px">
				<ul>
					<li
						style="text-align: left; margin-left: 60px; height: 40px; line-height: 40px">
						<span>名称：</span> <span> <input class="name" type="text">
					</span> <span>
							<button class="findBtn2">查询</button>
					</span>
					</li>
				</ul>
			</div>
			<div style="width: 1100px; height: 350px; overflow: scroll;">
				<form action="">
					<table class="head2"
						style="width: auto; white-space: nowrap; border-spacing: 0px">
						<tr style="background: #f2f2f2; height: 30px; line-height: 20px;"
							class="sel td">
							<td style="width: 20px"></td>
							<td>员工编号</td>
							<td>员工姓名</td>
							<td>部门</td>
							<td>员工类型</td>
							<td>身份证号码</td>
							<td>手机号码</td>
							<td>地址</td>
							<td>出生日期</td>
							<td>入职日期</td>
							<td>转正日期</td>
							<td>离职日期</td>
							<td>合同到期日</td>
							<td>社保编号</td>
							<td>车辆</td>
							<td>性别</td>
							<td>职级职等</td>
							<td>薪酬调整</td>
							<td>岗位异动</td>
							<td>请假记录</td>
							<td>违纪奖励记录</td>
							<td>社会保险记录</td>
							<td>计算招生提成</td>
							<td>计算培训提成</td>
						</tr>
						<c:forEach items="${persons}" var="persons" varStatus="s">
							<tr style="margin-top: 45px" class="xysj">
								<td class="td"><input type="checkbox" class="check"
									value="${persons.fid}" name="check" /></td>
								<td>${persons.fnumber}</td>
								<td>${persons.fnameL2}</td>
								<td>${persons.cfpersondepName}</td>
								<c:if test="${empty persons.cfpersontype}">
									<td></td>
								</c:if>
								<c:if test="${persons.cfpersontype == '0'}">
									<td></td>
								</c:if>
								<c:if test="${persons.cfpersontype == '1'}">
									<td>办公室职员</td>
								</c:if>
								<c:if test="${persons.cfpersontype == '2'}">
									<td>教练</td>
								</c:if>
								<c:if test="${persons.cfpersontype == '3'}">
									<td>其他</td>
								</c:if>
								<td>${persons.cfidcardno}</td>
								<td>${persons.cfcell}</td>
								<td>${persons.cfaddress}</td>
								<td>${persons.cfbirthdays}</td>
								<td>${persons.cfbegindate}</td>
								<td>${persons.cfstartdate}</td>
								<td>${persons.cfenddate}</td>
								<td>${persons.cfhtdqsj}</td>
								<td>${persons.cfaccountsno}</td>
								<td>${persons.cfcarName}</td>
								<c:if test="${empty persons.cfsex}">
									<td></td>
								</c:if>
								<c:if test="${persons.cfsex == '1'}">
									<td>男</td>
								</c:if>
								<c:if test="${persons.cfsex == '2'}">
									<td>女</td>
								</c:if>
								<td>${persons.positiongradeName}</td>
								<td>${persons.cfxctz}</td>
								<td>${persons.cfgwyd}</td>
								<td>${persons.cfqjjl}</td>
								<td>${persons.cfwjjljl}</td>
								<td>${persons.cfshjljl}</td>
								<c:if test="${empty persons.cfzstc}">
									<td><input type="checkbox" disabled="disabled"></td>
								</c:if>
								<c:if test="${persons.cfzstc == '0'}">
									<td><input type="checkbox" disabled="disabled"></td>
								</c:if>
								<c:if test="${persons.cfzstc == '1'}">
									<td><input type="checkbox" disabled="disabled"
										checked="checked"></td>
								</c:if>
								<c:if test="${empty persons.cfpxtc}">
									<td><input type="checkbox" disabled="disabled"></td>
								</c:if>
								<c:if test="${persons.cfpxtc == '0'}">
									<td><input type="checkbox" disabled="disabled"></td>
								</c:if>
								<c:if test="${persons.cfpxtc == '1'}">
									<td><input type="checkbox" disabled="disabled"
										checked="checked"></td>
								</c:if>
							</tr>
						</c:forEach>
					</table>

					<input type="hidden" class="type">
				</form>
			</div>
			<button class="subtn2"
				style="width: 200px; position: absolute; bottom: 25px; font-size: 16px; left: 170px">
				确定</button>
			<button class="btn"
				style="width: 200px; position: absolute; bottom: 25px; font-size: 16px; right: 170px">
				关闭</button>
		</div>
	
	<div class="div_body" style="box-shadow: 0 0 5px #cccccc;height: 1000px">
		<c:if test="${remunProvide.cfbillstate eq 3}">
			<div class="div_form">
				<form  action="<%=path%>/DrivingSys/updateRemunProvide" class="form" method="post" >
					<div class="jczl">
						<div class="div_input_hang">
							<div class="input_hang">
								<input type="hidden" name="fid" value="${remunProvide.fid }">
								<span class="gn_name">驾校&nbsp;:&nbsp;</span>
								<input  type="text" name="drivingSchool"  value="${ department.fnameL2}" readonly="readonly" style="color: gray;"/>
							</div>
							<div class="input_hang">
								<span class="gn_name">单据编号&nbsp;:&nbsp;</span>
								<input type="text" class="fnumber" name="fnumber" readonly="readonly" value="${remunProvide.fnumber}">
							</div>
							<div class="input_hang">
								<span class="gn_name">业务日期&nbsp;:&nbsp;</span>
								<input type="text" class="fbizdate" id="fbizdate" readonly="readonly" value="${remunProvide.fbizdate}" name="fbizdate">
									<%-- <img onclick="WdatePicker({el:'fbizdate',dateFmt:'yyyy-MM-dd '})"
                                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px"> --%>
							</div>
						</div>
						<div class="div_input_hang">
							<div class="input_hang" >
								<span class="gn_name">单据状态&nbsp;:&nbsp;</span>
								<select name="cfbillstate"   style="width: 234px;height: 31px" id="cfstateId" >
									<option value="3" >保存</option>

								</select>
							</div>
							<div class="input_hang">
								<span class="gn_name">年&nbsp;:&nbsp;</span>
								<input type="text" name="cfyear" readonly="readonly" value="${remunProvide.cfyear }">
							</div>
							<div class="input_hang">
								<span class="gn_name">月&nbsp;:&nbsp;</span>
								<input type="text" name="cfmonth" readonly="readonly" value="${remunProvide.cfmonth}">
							</div>
						</div>
						<div class="div_input_hang">
							<div class="input_hang">
								<span class="gn_name">参考信息&nbsp;:&nbsp;</span>
								<input type="text" name="fdescription" value="${remunProvide.fdescription}">
							</div>
						</div>
						<div class="div_zilei">
							<div style="width: 380px;text-align: right;float: right;margin-right: 120px;">
								<img src="<%=path%>/image/insert2323.jpg" class="addTable">
								<span style="padding-right: 20px;color: #a9bbe0;font-size: 14px"
									  id="" class="addTable" onclick="clickadd()">添加</span>
								<img src="<%=path%>/image/delete212.png" class="deleteTable">
								<span class="deleteTable" style="color: #a9bbe0;font-size: 14px"
									  class="deleteTable">删除</span>
							</div>
						</div>
						<div class="div_table" style="overflow:auto; width:1300px;padding-left: 0px;border:1px solid #ccc">
							<table class="" width="100%" id="table1"
								   style="min-height:50px;overflow:hidden;border-spacing:0;">
								<tr class="tr">
									<th align="center"><input type="checkbox"  name="check1" class="checkMain"  value=""></th>
									<th width="150px" align="center" >职员编码</th>
									<th width="150px" align="center">职员名称</th>
									<th width="150px" align="center">部门名称</th>
									<th width="150px" align="center">基本工资</th>
									<th width="150px" align="center">晋级工资</th>
									<th width="150px" align="center">绩效工资</th>
									<th width="150px" align="center">星级工资</th>
									<th width="150px" align="center">加班工资</th>
									<th width="150px" align="center">职龄工资</th>
									<th width="150px" align="center">培训提成</th>
									<th width="150px" align="center">招生提成</th>
									<th width="150px" align="center">生日津贴</th>
									<th width="150px" align="center">降温/防寒费</th>
									<th width="150px" align="center">其他补贴</th>
									<th width="150px" align="center">未足月/未打卡扣款</th>
									<th width="150px" align="center">社保费</th>
									<th width="150px" align="center">个人所得税</th>
									<th width="150px" align="center">住宿/水电费</th>
									<th width="150px" align="center">违纪罚款</th>
									<th width="150px" align="center">物品扣款</th>
									<th width="150px" align="center">应发合计</th>
								</tr>
								<c:forEach items="${remunProvide.remunProvideEntryList }" var="remunProvideEntry" >
									<tr class="child">
										<td><input  type="checkbox" name="check"  value="${remunProvideEntry.fid }" >
											<input type="hidden" name="personid" value="${remunProvideEntry.fid }">
										</td>
										<td><input  type="text" class="fseq" name="funmber"
													readonly="readonly" value="${remunProvideEntry.fnumber }" ></td>
										<td><input  type="text" class="fseq" name="personName"
													readonly="readonly" value="${remunProvideEntry.cfpersonname}" ></td>
										<td><input type="text" class="fseq" name="cfpersondepName"
												   readonly="readonly" value="${remunProvideEntry.cfdepartment }" ></td>
										<td><input type="text" class="price"  name="basePay"
												   value="" ></td>
										<td><input type="text" class=price"  name="promotePay"
												   value="" ></td>
										<td><input type="text" class="price" name="performancePay"
												   value="" ></td>
										<td><input type="text" class="price" name="starPay"
												   value="" ></td>
										<td><input type="text" class="price" name="overtimePay"
												   value="" ></td>
										<td><input type="text" class="price" name="positionAgePay"
												   value="" ></td>
										<td><input type="text" class="price" name="trainPay"
												   value="" ></td>
										<td><input type="text" class="price" name="recruitPay"
												   value="" ></td>
										<td><input type="text" class="price" name="birthdayPay"
												   value="" ></td>
										<td><input type="text" class="price" name="coolingPay"
												   value="" ></td>
										<td><input type="text" class="price" name="elsePay"
												   value=" "></td>
										<td><input type="text" class="price" name="notFullMonthPay"
												   value="" ></td>
										<td><input type="text" class="price" name="securityPay"
												   value="" ></td>
										<td><input type="text" class="price" name="personalPay"
												   value="" ></td>
										<td><input type="text" class="price" name="livePay"
												   value="" ></td>
										<td><input type="text" class="price" name="breakPay"
												   value="" ></td>
										<td><input type="text" class="price" name="goodsPay"
												   value="" ></td>
										<td><input type="text" class="cfamount"  readonly="readonly" name="cfamount"
												   value="${remunProvideEntry.cfamount }" ></td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<div class="div_input_hang">

						</div>
						<div class="div_input_hang">
							<div class="input_hang">
								<span class="gn_name">审核人&nbsp;:&nbsp;</span>
								<input  type="text" name="checkName"  value="" readonly="readonly" style="color: gray;"/>
							</div>
							<div class="input_hang">
								<span class="gn_name">创建者&nbsp;:&nbsp;</span>
								<input type="text" name="createName" readonly="readonly" value="${remunProvide.createName }">
							</div>
							<div class="input_hang">
								<span class="gn_name">修改时间&nbsp;:&nbsp;</span>
								<input type="text" id="flastupdatetime" value="${updateTime }" name="flastupdatetime"
									   onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})">
								<img onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})"
									 src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
								<input type="hidden" name="flastupdateuserid" value="${user.fid }">
							</div>
						</div>
						<div class="div_tj">
							<shiro:hasPermission name="/sureRemunProvide">
								<div>
                                    <input type="submit" class="input_submit bc" value="">
								</div>
							</shiro:hasPermission>
							<shiro:hasPermission name="/submitRemunProvide">
								<div>
									<input  type="button" class="input_submit tj" value="" onclick="audit(4)">
								</div>
							</shiro:hasPermission>
							<div>
								<input type="button" class="input_submit cklc" value="" onclick="lookActivitiImg('publicProcess',$('.fnumber').val())">
							</div>
							<div>
								<input type="button" class="input_back fh"  value="" onclick="back()"/>
							</div>
						</div>
					</div>
				</form>
			</div>
		</c:if>

		<c:if test="${remunProvide.cfbillstate eq 4}">
		<div class="div_form">
			<form  action="<%=path%>/DrivingSys/updateRemunProvide" class="form" method="post" >
				<div class="jczl">
					<div class="div_input_hang">
						<div class="input_hang">
							<input type="hidden" name="fid" value="${remunProvide.fid }">
							<span class="gn_name">驾校&nbsp;:&nbsp;</span>
							<input  type="text" name="drivingSchool"  value="${ department.fnameL2}" readonly="readonly" style="color: gray;"/>
						</div>
						<div class="input_hang">
							<span class="gn_name">单据编号&nbsp;:&nbsp;</span>
							<input type="text" class="fnumber" name="fnumber" readonly="readonly" value="${remunProvide.fnumber}">
						</div>
						<div class="input_hang">
							<span class="gn_name">业务日期&nbsp;:&nbsp;</span>
							<input type="text" class="fbizdate" id="fbizdate" readonly="readonly" value="${remunProvide.fbizdate}" name="fbizdate">
                        <%-- <img onclick="WdatePicker({el:'fbizdate',dateFmt:'yyyy-MM-dd '})"
                             src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px"> --%>
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">单据状态&nbsp;:&nbsp;</span>
							<select name="cfbillstate"   style="width: 234px;height: 31px" id="cfstateId" >
                    	    	<option value="4" >提交</option>
                    	    	
                    		</select>
						</div>
						<div class="input_hang">
							<span class="gn_name">年&nbsp;:&nbsp;</span>
							<input type="text" name="cfyear" readonly="readonly" value="${remunProvide.cfyear }">
						</div> 
						<div class="input_hang">
							<span class="gn_name">月&nbsp;:&nbsp;</span>
							<input type="text" name="cfmonth" readonly="readonly" value="${remunProvide.cfmonth}">
						</div> 
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">参考信息&nbsp;:&nbsp;</span>
							<input type="text" name="fdescription" value="${remunProvide.fdescription}" readonly="readonly">
						</div>
					</div>
					<div class="div_zilei">
                        <div style="width: 380px;text-align: right;float: left;">
                            <%--<img src="<%=path%>/image/insert2323.jpg" class="addTable">
                            <span style="padding-right: 20px;color: #a9bbe0;font-size: 14px"
                                  id="" class="addTable" onclick="clickadd()">添加</span>
                            <img src="<%=path%>/image/delete212.png" class="deleteTable">
                            <span class="deleteTable" style="color: #a9bbe0;font-size: 14px"
                                  class="deleteTable">删除</span>--%>
                        </div>
                    </div>
					<div class="div_table" style="overflow:auto; width:1300px;padding-left: 0px;border:1px solid #ccc">
                <table class="" width="100%" id="table1"
                       style="min-height:50px;overflow:hidden;border-spacing:0;">
                    <tr class="tr">
                    	<th align="center"><input type="checkbox"  name="check1" class="checkMain"  value=""></th>
                        <th width="150px" align="center" >职员编码</th>
                        <th width="150px" align="center">职员名称</th>
                        <th width="150px" align="center">部门名称</th>
                        <th width="150px" align="center">基本工资</th>
                        <th width="150px" align="center">晋级工资</th> 
                      	<th width="150px" align="center">绩效工资</th>
                      	<th width="150px" align="center">星级工资</th>
                      	<th width="150px" align="center">加班工资</th>
                      	<th width="150px" align="center">职龄工资</th>
                      	<th width="150px" align="center">培训提成</th>
                      	<th width="150px" align="center">招生提成</th>
                      	<th width="150px" align="center">生日津贴</th>
                      	<th width="150px" align="center">降温/防寒费</th>
                      	<th width="150px" align="center">其他补贴</th>
                      	<th width="150px" align="center">未足月/未打卡扣款</th>
                      	<th width="150px" align="center">社保费</th>
                      	<th width="150px" align="center">个人所得税</th>
                      	<th width="150px" align="center">住宿/水电费</th>
                      	<th width="150px" align="center">违纪罚款</th>
                      	<th width="150px" align="center">物品扣款</th>
                      	<th width="150px" align="center">应发合计</th> 
                    </tr>
                    <c:forEach items="${remunProvide.remunProvideEntryList }" var="remunProvideEntry" >
                    <tr class="child">
						<td><input  type="checkbox" name="check1"  value="${remunProvideEntry.fid }" >
							<input type="hidden" name="personid" value="${remunProvideEntry.fid }">
							 </td>
						<td><input  type="text" class="fseq" name="funmber"
									readonly="readonly" value="${remunProvideEntry.fnumber }" readonly="readonly"></td>
						<td><input  type="text" class="fseq" name="personName"
									readonly="readonly" value="${remunProvideEntry.cfpersonname}" readonly="readonly"></td>
						<td><input type="text" class="fseq" name="cfpersondepName"
								   readonly="readonly" value="${remunProvideEntry.cfdepartment }" readonly="readonly"></td>
						<td><input type="text" class="basePay"  name="basePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class=""  name="promotePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="performancePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="starPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="overtimePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="positionAgePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="trainPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="recruitPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="birthdayPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="coolingPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="elsePay"
								   value=" "readonly="readonly"></td>
						<td><input type="text" class="" name="notFullMonthPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="securityPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="personalPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="livePay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="breakPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="" name="goodsPay"
								   value="" readonly="readonly"></td>
						<td><input type="text" class="cfamount"  readonly="readonly" name="cfamount"
								   value="${remunProvideEntry.cfamount }" readonly="readonly"></td>
					</tr>
					</c:forEach> 
                </table>
            </div>
            <div class="div_input_hang">
						
			</div>	
			<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">审核人&nbsp;:&nbsp;</span>
							<input  type="text" name="checkName"  value="" readonly="readonly" style="color: gray;"/>
						</div>
						<div class="input_hang">
							<span class="gn_name">创建者&nbsp;:&nbsp;</span>
							<input type="text" name="createName" readonly="readonly" value="${remunProvide.createName }">
						</div>
						<div class="input_hang">
							<span class="gn_name">修改时间&nbsp;:&nbsp;</span>
							<input type="text" id="flastupdatetime" value="${updateTime }" name="flastupdatetime"
                               onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})">
                        <img onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})"
                             src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
							<input type="hidden" name="flastupdateuserid" value="${user.fid }">
						</div>
					</div>
				<div class="div_tj">
					<shiro:hasPermission name="/auditRemunProvide">
						<div>
							<input  type="button" class="input_submit sh" value="" onclick="audit(5)">
						</div>
					</shiro:hasPermission>
					<shiro:hasPermission name="/againstAuditRemunProvide">
						<div>
							<input  class="input_submit fsh" value="" type="button" onclick="audit(3)">
						</div>
					</shiro:hasPermission>
					<div>
						<input type="button" class="input_submit cklc" value="" onclick="lookActivitiImg('publicProcess',$('.fnumber').val())">
					</div>
					<div>
						<input type="button" class="input_back fh"  value="" onclick="back()"/>
					</div>
				</div>
				</div>
			</form>
		</div>
	</c:if>

		<c:if test="${remunProvide.cfbillstate eq 5}">
			<div class="div_form">
				<form  action="<%=path%>/DrivingSys/updateRemunProvide" class="form" method="post" >
					<div class="jczl">
						<div class="div_input_hang">
							<div class="input_hang">
								<input type="hidden" name="fid" value="${remunProvide.fid }">
								<span class="gn_name">驾校&nbsp;:&nbsp;</span>
								<input  type="text" name="drivingSchool"  value="${ department.fnameL2}" readonly="readonly" style="color: gray;"/>
							</div>
							<div class="input_hang">
								<span class="gn_name">单据编号&nbsp;:&nbsp;</span>
								<input type="text" class="fnumber" name="fnumber" readonly="readonly" value="${remunProvide.fnumber}">
							</div>
							<div class="input_hang">
								<span class="gn_name">业务日期&nbsp;:&nbsp;</span>
								<input type="text" class="fbizdate" id="fbizdate" readonly="readonly" value="${remunProvide.fbizdate}" name="fbizdate">
									<%-- <img onclick="WdatePicker({el:'fbizdate',dateFmt:'yyyy-MM-dd '})"
                                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px"> --%>
							</div>
						</div>
						<div class="div_input_hang">
							<div class="input_hang">
								<span class="gn_name">单据状态&nbsp;:&nbsp;</span>
								<select name="cfbillstate"   style="width: 234px;height: 31px" id="cfstateId" >
									<option value="5" >审核</option>

								</select>
							</div>
							<div class="input_hang">
								<span class="gn_name">年&nbsp;:&nbsp;</span>
								<input type="text" name="cfyear" readonly="readonly" value="${remunProvide.cfyear }">
							</div>
							<div class="input_hang">
								<span class="gn_name">月&nbsp;:&nbsp;</span>
								<input type="text" name="cfmonth" readonly="readonly" value="${remunProvide.cfmonth}">
							</div>
						</div>
						<div class="div_input_hang">
							<div class="input_hang">
								<span class="gn_name">参考信息&nbsp;:&nbsp;</span>
								<input type="text" name="fdescription" value="${remunProvide.fdescription}" readonly="readonly">
							</div>
						</div>
						<div class="div_zilei">
							<div style="width: 380px;text-align: right;float: left;">
									<%--<img src="<%=path%>/image/insert2323.jpg" class="addTable">
                                    <span style="padding-right: 20px;color: #a9bbe0;font-size: 14px"
                                          id="" class="addTable" onclick="clickadd()">添加</span>
                                    <img src="<%=path%>/image/delete212.png" class="deleteTable">
                                    <span class="deleteTable" style="color: #a9bbe0;font-size: 14px"
                                          class="deleteTable">删除</span>--%>
							</div>
						</div>
						<div class="div_table" style="overflow:auto; width:1300px;padding-left: 0px;border:1px solid #ccc">
							<table class="" width="100%" id="table1"
								   style="min-height:50px;overflow:hidden;border-spacing:0;">
								<tr class="tr">
									<th align="center"><input type="checkbox"  name="check1" class="checkMain"  value=""></th>
									<th width="150px" align="center" >职员编码</th>
									<th width="150px" align="center">职员名称</th>
									<th width="150px" align="center">部门名称</th>
									<th width="150px" align="center">基本工资</th>
									<th width="150px" align="center">晋级工资</th>
									<th width="150px" align="center">绩效工资</th>
									<th width="150px" align="center">星级工资</th>
									<th width="150px" align="center">加班工资</th>
									<th width="150px" align="center">职龄工资</th>
									<th width="150px" align="center">培训提成</th>
									<th width="150px" align="center">招生提成</th>
									<th width="150px" align="center">生日津贴</th>
									<th width="150px" align="center">降温/防寒费</th>
									<th width="150px" align="center">其他补贴</th>
									<th width="150px" align="center">未足月/未打卡扣款</th>
									<th width="150px" align="center">社保费</th>
									<th width="150px" align="center">个人所得税</th>
									<th width="150px" align="center">住宿/水电费</th>
									<th width="150px" align="center">违纪罚款</th>
									<th width="150px" align="center">物品扣款</th>
									<th width="150px" align="center">应发合计</th>
								</tr>
								<c:forEach items="${remunProvide.remunProvideEntryList }" var="remunProvideEntry" >
									<tr class="child">
										<td><input  type="checkbox" name="check1"  value="${remunProvideEntry.fid }" >
											<input type="hidden" name="personid" value="${remunProvideEntry.fid }">
											</td>
										<td><input  type="text" class="fseq" name="funmber"
													readonly="readonly" value="${remunProvideEntry.fnumber }" readonly="readonly"></td>
										<td><input  type="text" class="fseq" name="personName"
													readonly="readonly" value="${remunProvideEntry.cfpersonname}" readonly="readonly"></td>
										<td><input type="text" class="fseq" name="cfpersondepName"
												   readonly="readonly" value="${remunProvideEntry.cfdepartment }" readonly="readonly"></td>
										<td><input type="text" class="basePay"  name="basePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class=""  name="promotePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="performancePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="starPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="overtimePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="positionAgePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="trainPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="recruitPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="birthdayPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="coolingPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="elsePay"
												   value=" "readonly="readonly"></td>
										<td><input type="text" class="" name="notFullMonthPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="securityPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="personalPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="livePay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="breakPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="" name="goodsPay"
												   value="" readonly="readonly"></td>
										<td><input type="text" class="cfamount"  readonly="readonly" name="cfamount"
												   value="${remunProvideEntry.cfamount }" readonly="readonly"></td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<div class="div_input_hang">

						</div>
						<div class="div_input_hang">
							<div class="input_hang">
								<span class="gn_name">审核人&nbsp;:&nbsp;</span>
								<input  type="text" name="checkName"  value="" readonly="readonly" style="color: gray;"/>
							</div>
							<div class="input_hang">
								<span class="gn_name">创建者&nbsp;:&nbsp;</span>
								<input type="text" name="createName" readonly="readonly" value="${remunProvide.createName }">
							</div>
							<div class="input_hang">
								<span class="gn_name">修改时间&nbsp;:&nbsp;</span>
								<input type="text" id="flastupdatetime" value="${updateTime }" name="flastupdatetime"
									   onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})">
								<img onclick="WdatePicker({el:'flastupdatetime',dateFmt:'yyyy-MM-dd hh24:mm:ss'})"
									 src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
								<input type="hidden" name="flastupdateuserid" value="${user.fid }">
							</div>
						</div>
						<div class="div_tj">
							<shiro:hasPermission name="/againstAuditRemunProvide">
								<div>
									<input  type="button" class="input_submit fsh" value="" onclick="audit(3)">
								</div>
							</shiro:hasPermission>
							<div>
								<input type="button" class="input_submit cklc" value="" onclick="lookActivitiImg('publicProcess',$('.fnumber').val())">
							</div>
							<div>
								<input type="button" class="input_back fh"  value="" onclick="back()"/>
							</div>
						</div>
					</div>
				</form>
			</div>
		</c:if>

	</div>
</div>
</body>
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp" %>
<script type="text/javascript">

	
	$("#llhy").blur(function(){
		//只能输入数字和小数点
		var re = /^\d+(?=\.{0,1}\d+$|$)/ 
		//理论油耗的值
		var llhy = $(this).val();
		//判断只能输入数字和小数点
		if(llhy == ""){
			$(".haoyou").css("display","none");
		}else if(!re.test(llhy)){
			$(".haoyou").css("display","inline");
			$(this).val("")
		}else{
			$(".haoyou").css("display","none");
		}
	})
	
	$("#gmjg").blur(function(){
		//只能输入数字和小数点
		var re = /^\d+(?=\.{0,1}\d+$|$)/ 
		//理论油耗的值
		var gmjg = $(this).val();
		//判断只能输入数字和小数点
		if(gmjg == ""){
			$(".jiage").css("display","none");
		}else if(!re.test(gmjg)){
			$(".jiage").css("display","inline");
			$(this).val("")
		}else{
			$(".jiage").css("display","none");
		}
	})
    //键盘事件
    $(".price").live('keyup', function(event) {
        //最后一位是小数点的话，移除
        var $amountInput = $(this);
        //响应鼠标事件，允许左右方向键移动
        event = window.event || event;
        if(event.keyCode == 37 | event.keyCode == 39) {
            return;
        }
        //先把非数字的都替换掉，除了数字和.
        $amountInput.val($amountInput.val().replace(/[^\-?\d.]/g, "").
        //只允许一个小数点
        replace(/^\./g, "").replace(/\.{2,}/g, ".").
        //只能输入小数点后两位
        replace(".", "$#$").replace(/\./g, "").replace("$#$", ".").replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'));
        machMoney();
    });

	function machMoney() {
        //计算工资
        $(".child").keyup(function(){
            var td=$(this).find("td")
            //alert("hhh")
            /*var flag=td.eq(0).children("input").prop("checked")
             if(!flag){
                alert("操作前，请先勾选此行!")
                td.eq(4).children("input").val("")//清空输入的值
            }else{ */
            var sum=0
            for(var i=4;i<td.length-1;i++){
                var date=td.eq(i).children("input").val()
                date=Number(date)
                if(i<=14){
                    sum+=date
                }
                if(i>=15){//这里是扣款项目
                    sum-=date
                }

                //}
                //td.eq(2).children("input").attr("name","personName")
                //td.eq(3).children("input").attr("name","cfpersondepName")
                td.eq(td.length-1).children("input").attr("name","cfamount")
                td.eq(td.length-1).children("input").val(sum)//总钱
            }
        })
    }

	//点击改变复选框的name值
	/* function changeName(obj){
		if (obj.is(":checked")) {   	
	       obj.attr("name","check1");  
	    }else{//不选中name值为空
	    	obj.attr("name","")
	    }
	} */
	/* function check2(){
		if($("#flastupdatetime").val()==null || $("#flastupdatetime").val()==''){
			alert("修改时间不能为空!")
			$("#flastupdatetime").focus()
			return false	
		}
		return true
	} */
	//提供通过append生成的元素也有什么事件
	$(document).on('keyup','.child',function(){
		var td=$(this).find("td")
			var sum=0
			for(var i=4;i<td.length-1;i++){
				var date=td.eq(i).children("input").val()
				date=Number(date)
				if(i<=14){
					sum+=date
				}
				if(i>=15){//这里是扣款项目
					sum-=date
				}
			td.eq(td.length-1).children("input").attr("name","cfamount")
			td.eq(td.length-1).children("input").val(sum)//总钱
		}		
	})
	//显示所有职员
	$('.addTable').click(function(){
		//$(".type").val("zuchang"); 
		$('#modal-overlay').css('visibility','visible')
		$('.modal-data2').css('visibility','visible')
		$('input:checkbox').removeAttr('checked');
		
	})
	//取消
	$('.btn').click(function(){
		$('#modal-overlay').css('visibility','hidden')
		$('.modal-data2').css('visibility','hidden')
		$('.modal-data1').css('visibility','hidden')
		$('input:checkbox').removeAttr('checked');
	})
	
	//根据名称查询
	$(".findBtn2").click(function(){
		var name = $(".name").val();
		$.ajax({
			url:'<%=path%>/DrivingSys/quePersonByName', 
	   		type: "post",
	   		data:{'name':name},
	    	dataType:"json",
	    	success:function(json){
	    		data(json,2)
	    	},  
				error: function(){alert('Error');} 
		})
	})
	

	//删除
	$(".deleteTable").click(function() {
		var fidids = document.getElementsByName("check1")
		var personid;
		for (var i = 0; i < fidids.length; i++) {
			if (fidids[i].checked) {
				personid = fidids[i].value;
			}
		}
		if (personid == null || personid == "") {
			alert("请至少选择一条数据删除")
		}
		$("input[name='check1']:checked").each(function() {//遍历选中的checkbox
			n = $(this).parents("tr").index()//获取checkbox所在的顺序
			if(n == 0){//第一行不删除
			}else{
				$("#table1").find("tr:eq(" + n + ")").remove();
			}
			
		})
	})
	//全选全不选
	$(".checkMain").click(function() {
		if (this.checked) {
			$("[name=check1]").attr("checked", true);
		} else {
			$("[name=check1]").attr("checked", false);
		}
	})
	//选择数据
	$(".subtn2").click(
			function() {
				var type = $(".type").val();
				var fids = "";
				var persons=new Array();
				$('input:checkbox:checked').each(function(i) {
					if (0 == i) {
						fids = $(this).val();
					}else{
						fids +=(","+$(this).val());
					}
				});
				persons=fids.split(",")
				if(persons==null || persons==""){
					alert("请选择一条数据")
					return false
				}else{
					for(var i=0;i<persons.length;i++){				
							$.ajax({
							url : '<%=path%>/DrivingSys/quePersonByFid',
							type : "post",
							data : {'fid' : persons[i]},
							dataType : "json",
							success : function(json) {
								//添加table的行
								var str="<tr class='child'><td><input type='checkbox' name='check' value="+json.fid+" ><input type='hidden' name='personid' value="+json.fid+"></td>";
								str+="<td><input type='text' name='funmber' readonly='readonly' value=''></td><td><input type='text' name='personName' readonly='readonly' value=''></td> "
								str+="<td><input type='text' name='cfpersondepName' readonly='readonly' value=''></td><td><input type='text' name=''  value=''></td>";
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='' value=''></td><td><input type='text' name=''  value=''></td>"
								str+="<td><input type='text' name='cfamount' readonly='readonly' value='0'></td></tr>"
								$("#table1").append(str)
								//把值填充到行中
								$('#table1 tr:last').find('td').eq(1).children("input").val(json.fnumber);
								$('#table1 tr:last').find('td').eq(2).children("input").val(json.fnameL2);
								$('#table1 tr:last').find('td').eq(3).children("input").val(json.cfpersondepName);
							
							},
							error : function() {
							alert('Error');
							}
						})			
					}
				}
				<%-- if (fid == "") {
					alert("请选择一条数据")
					return false
				} else {
					$.ajax({
					url : '<%=path%>/DrivingSys/quePersonByFid',
					type : "post",
					data : {'fid' : fid},
					dataType : "json",
					success : function(json) {
						$('#table1 tr:last').find('td').eq(0).children("input").val(json.fid);
						$('#table1 tr:last').find('td').eq(1).children("input").val(json.fnumber);
						$('#table1 tr:last').find('td').eq(2).children("input").val(json.fnameL2);
						$('#table1 tr:last').find('td').eq(3).children("input").val(json.cfpersondepName);
						
				},
				error : function() {
					alert('Error');
				}
			})			
		} --%>
		$('#modal-overlay').css('visibility', 'hidden')
		$('.modal-data2').css('visibility', 'hidden')
		$('.modal-data1').css('visibility', 'hidden')
	});
	
	//职员数据
	function data(json, args) {
		var str = ''
		for (var i = 0; i < json.length; i++) {
			str += '<tr style="margin-top: 45px;height: 30px;" ><td><input style="width: 15px;height: 15px" '
  	         str+='type="checkbox" name="train"  value="'+json[i].fid+'"></td>'
			if (json[i].fnumber == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].fnumber + '</td>'
			}
			if (json[i].fnameL2 == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].fnameL2 + '</td>'
			}
			if (json[i].cfpersondepName == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfpersondepName + '</td>'
			}
			if (json[i].cfpersontype == '1') {
				str += '<td>办公室职员</td>'
			} else if (json[i].cfpersontype == '2') {
				str += '<td>教练</td>'
			} else if (json[i].cfpersontype == '3') {
				str += '<td>其他</td>'
			} else {
				str += '<td></td>'
			}
			if (json[i].cfidcardno == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfidcardno + '</td>'
			}
			if (json[i].cfcell == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfcell + '</td>'
			}
			if (json[i].cfaddress == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfaddress + '</td>'
			}
			if (json[i].cfbirthdays == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfbirthdays + '</td>'
			}
			if (json[i].cfbegindate == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfbegindate + '</td>'
			}
			if (json[i].cfstartdate == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfstartdate + '</td>'
			}
			if (json[i].cfenddate == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfenddate + '</td>'
			}
			if (json[i].cfhtdqsj == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfhtdqsj + '</td>'
			}
			if (json[i].cfhtdqsj == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfaccountsno + '</td>'
			}
			if (json[i].cfcarName == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfcarName + '</td>'
			}
			if (json[i].cfsex == '1') {
				str += '<td>男</td>'
			} else if (json[i].cfsex == '2') {
				str += '<td>女</td>'
			} else {
				str += '<td></td>'
			}
			if (json[i].positiongradeName == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].positiongradeName + '</td>'
			}
			if (json[i].cfxctz == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfxctz + '</td>'
			}
			if (json[i].cfgwyd == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfgwyd + '</td>'
			}
			if (json[i].cfqjjl == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfqjjl + '</td>'
			}
			if (json[i].cfwjjljl == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfwjjljl + '</td>'
			}
			if (json[i].cfshjljl == null) {
				str += '<td></td>'
			} else {
				str += '<td>' + json[i].cfshjljl + '</td>'
			}
			if (json[i].cfzstc == '0') {
				str += '<td><input type="checkbox" disabled="disabled"></td>'
			} else if (json[i].cfzstc == '1') {
				str += '<td><input type="checkbox" disabled="disabled" checked="checked"></td>'
			} else {
				str += '<td><input type="checkbox" disabled="disabled"></td>'
			}
			if (json[i].cfpxtc == '1') {
				str += '<td><input type="checkbox" disabled="disabled" checked="checked"></td>'
			} else {
				str += '<td><input type="checkbox" disabled="disabled"></td>'
			}
			str += '</tr>';
		}
		if (args == '2') {
			$(".head2 tr:not(':first')").remove()
			$('.head2').append(str)
		} else {
			$(".head1 tr:not(':first')").remove()
			$('.head1').append(str)
		}
	}

    //摸态框设置单击选中
    $(document).on('click','.xysj td:not(.td)',function(){
        if($(this).parent().find("input:checkbox[name=check]").is(':checked')){
            $(this).parent().find("input:checkbox[name=check]").removeAttr("checked");
        }else{
            $(this).parent().find("input:checkbox[name=check]").attr("checked",":checked")
        }
    })
    //摸态框设置双击确定
    $(document).on('dblclick','.xysj td',function(){

	})
    //返回
    function back(){
        location = '<%=path%>/DrivingSys/queryRemunProvide/look.action';
    }


    function audit(num) {
        var fid = $("input:hidden[name=fid]").val();
        var fnumber =$("input:text[name=fnumber]").val();
        if(fid == null || fnumber == null){
            return false;
        }
        if(num == 3){//反审核
            $('#modal-overlay').css('visibility', 'visible')
            $('.modal-data10').css('visibility', 'visible')
            $("#againstAuditsubmit").click(function(){
                var againstAuditcomment = $("#againstAuditcomment").val();
                if (againstAuditcomment == null || againstAuditcomment == '') {
                    againstAuditcomment = "不同意";
                }
                $.ajax({
                    url:'<%=path%>/DrivingSys/againstRemunProvideActiviti',
                    type:'post',
                    data:{'fid':fid,'fnumber':fnumber,'againstAuditcomment':againstAuditcomment},
                    dataType:'json',
                    success:function(result){
                        if(result["result"] == 'success'){
                            showAlert("反审核成功!","queryRemunProvide/look.action")
                            /*alert("反审核成功!")
                            setTimeout(function () {
                                location="<%=path%>/DrivingSys/queryRemunProvide/look.action";
                            }, 1000);*/
                        }else{
                            alert("反审核失败!")
                        }
                    },
                    error:function () {alert('Error')}
                })
            })

        }
        if(num == 4){//提交
            $.messager.confirm('提示', '是否提交?', function (r) {
                if(r){
                    $.ajax({
                        url:'<%=path%>/DrivingSys/submitRemunProvideActiviti',
                        type:'post',
                        data:{'fid':fid,'fnumber':fnumber},
                        dataType:'json',
                        success:function(result){
                            if(result["result"] == 'success'){
                                showAlert("提交成功!","queryRemunProvide/look.action")
                                /*alert("提交成功!")
                                setTimeout(function () {
                                    location="<%=path%>/DrivingSys/queryRemunProvide/look.action";
                                }, 1000);*/
                            }else{
                                alert("提交失败!")
                            }
                        },
                        error:function () {alert('Error')}
                    })
				}
			})
        }

        if(num == 5){   //审核
            $('#modal-overlay').css('visibility', 'visible')
            $('.modal-data9').css('visibility', 'visible')
            $("#auditsubmit").click(function() {
                var agree = $("input:radio[name=check]:checked").val();//同意不同意
                var auditcomment = $("#auditcomment").val();
                if (agree == null) {
                    alert("你选择你的意见");
                    return false;
                }
                if (auditcomment == null || auditcomment == '') {
                    if(agree == "1"){
                        auditcomment = "同意";
                    }else{
                        auditcomment = "不同意";
                    }
                }

                $.ajax({
                    url:'<%=path%>/DrivingSys/checkRemunProvideActiviti',
                    type:'post',
                    data:{'fid':fid,'fnumber':fnumber,'agree':agree,'auditcomment':auditcomment},
                    dataType:'json',
                    // async: true,
                    success:function(result){
                        if(result["result"] == 'success'){
                            showAlert("审核成功!","queryRemunProvide/look.action")
                           /* alert("审核成功!")
                            setTimeout(function () {
                                location="<%=path%>/DrivingSys/queryRemunProvide/look.action";
                            }, 1000);*/
                        }else{
                            alert("审核失败!")
                        }
                    },
                    error:function () {alert('Error')}
                })
            })

        }
    }
    function subForm(){
        var count=0;
        $("input:checkbox[name=check]:checked").each(function(){
            count++;
        })
        if(count == 0){
            alert("请至少添加一名职员工资!")
            return false;
        }
        $("input[type='submit']").attr("disabled", "disabled");
    }
</script>
</html>